# 
# gettext.rb
# 
# Created on 2007-10-23, 11:31:28
# 
# To change this template, choose Tools | Templates
# and open the template in the editor.
 

require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'


require 'gettext/utils'

desc "Update pot/po files to match new version." 

task :updatepo do  
  MY_APP_TEXT_DOMAIN = "jiandanhua"   
  MY_APP_VERSION     = "jiandanhua 0.0.1"   
  GetText.update_pofiles(MY_APP_TEXT_DOMAIN,   
    Dir.glob("{app,lib}/**/*.{rb,rhtml}"),   
    MY_APP_VERSION)  
end  
      
desc "Create mo-files for L10n"   
task :makemo do  
  GetText.create_mofiles(true, "po", "locale")  
end    